﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using WcfClient.ExternalService;
using WcfClient.WcfCalculatorService;

namespace WcfClient
{
    class Program
    {
        static void Main(string[] args)
        {
            //以服务代理对象请求服务
            //CalculatorClient client = new CalculatorClient();
            //double a = client.Add(5,5);
            //Console.WriteLine(a);


            //ChannelFactory<WCFStudy.ICalculator> proxy = new ChannelFactory<WCFStudy.ICalculator>();//.CreateChannel(new EndpointAddress("http://127.0.0.1:9999/calculatorservice"));
            //proxy.Endpoint.Binding = new WSHttpBinding();
            //proxy.Endpoint.Address = (new EndpointAddress("http://127.0.0.1:9999/calculatorservice"));
            //WCFStudy.ICalculator calcutor = proxy.CreateChannel();
            //a = calcutor.Add(6,6);
            //Console.WriteLine(a);
            //K3UserService.UserServiceClient client = new K3UserService.UserServiceClient();
            //var ns =client.GetAllNos();
            //var user = client.GetStaffInfoByNo(ns[0]);
            ExternalService.ExternalServiceClient client = new ExternalService.ExternalServiceClient();
            client.GangedSystemFiling("WYXJ", "AA61906", "mawg", "11011011011", Gender.Female, DateTime.Now, null);
            Console.Read();
        }
    }
}
